package com.stefanini.pe.bbva.bp.in.bo.impl;

import java.util.List;

import javax.faces.model.SelectItem;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stefanini.pe.bbva.bp.in.bo.iface.GestionSaldosBOIface;
import com.stefanini.pe.bbva.bp.in.dao.iface.GestionSaldosDAOIface;
import com.stefanini.pe.bbva.bp.in.to.SaldoAnualCursor;
import com.stefanini.pe.bbva.bp.in.to.SaldoMensualCursor;

@Service(value="gestionSaldosBO")
public class GestionSaldosBOImpl implements GestionSaldosBOIface {

	@Autowired
	private GestionSaldosDAOIface gestionSaldosDAO;
	
	@Override
	public List<SelectItem> consultaAnioSaldos() {
		return gestionSaldosDAO.consultaAnioSaldos();	
	}

	@Override
	public List<SaldoAnualCursor> buscarSaldoAnual(String anio,
			String idPerfil, String idTipoCliente, String idUsuarioAsesor) {
		return gestionSaldosDAO.buscarSaldoAnual(anio,idPerfil,idTipoCliente,idUsuarioAsesor);
	}

	@Override
	public List<SaldoMensualCursor> buscarSaldoMensual(String anio, String mes,
			String idPerfil, String idTipoCliente, String idUsuarioAsesor) {
		return gestionSaldosDAO.buscarSaldoMensual(anio,mes,idPerfil,idTipoCliente,idUsuarioAsesor);
	}

	public GestionSaldosDAOIface getGestionSaldosDAO() {
		return gestionSaldosDAO;
	}

	public void setGestionSaldosDAO(GestionSaldosDAOIface gestionSaldosDAO) {
		this.gestionSaldosDAO = gestionSaldosDAO;
	}
}
